#include <BustaEngine.h>
Public Member Functions | |
BustaEngine () | |
Constructor. | |
~BustaEngine () | |
Destructor. | |
ScreenState | getState () |
Gets the current/next screen state. | |
void | setState (ScreenState s) |
Sets current/next screen state. | |
void | mainMenu () |
Main Menu. | |
void | optionsMenu () |
Options Menu. | |
void | highScores () |
High Scores Screen. | |
void | characterSelectSP () |
Character Select Screen Single Player. | |
void | characterSelectMP () |
Character Select Screen. | |
void | connectScreen () |
Connection Screen. | |
void | keyBindingMenu () |
Key Binding Menu. | |
void | soundsMenu () |
Difficulty Screen. | |
void | difficultyMenu () |
Difficulty Screen. | |
void | playGame () |
SP Game. | |
void | displayRankings (char **rankedNames, int *scores, BustaModelCharacter *rankedCharacters) |
Ranking Screen. | |
char * | netInit () |
Initializes network. | |
char * | connectIP (char *ip) |
Initializes network connection. | |
int | moveLeft (int col_curr, int align_curr) |
moves cursor left | |
int | moveRight (int col_curr, int align_curr) |
moves cursor right | |
int | moveUp (int row_curr, int align_curr) |
moves cursor up | |
int | moveDown (int row_curr, int align_curr) |
moves cursor down | |
int | swap (int row_curr, int col_curr, int align_curr) |
Swaps two ingredients on the game board. | |
int | rotate (int row_curr, int col_curr, int align_curr) |
rotates alignment cursor clockwise | |
BustaModelCompleteSandwich * | submit_cus () |
Customer sandwich submission. | |
BustaModelCompleteSandwich * | submit_self () |
self sandwich submission | |
BustaModelCompleteSandwich * | submit_opponent () |
opponent sandwich submission | |
void | submit_board () |
updates board after sandwich submissions | |
void | submit_penalty () |
updates board after penalty sandwich submission |
Busta'Sandwich Engine for single player and networked multiplayer games.
|
Constructor. Initializes variables |
|
Destructor.
|
|
Character Select Screen. Displays the character select screen, allowing users to choose characters in a multiplayer game |
|
Character Select Screen Single Player. Displays the character select screen, allowing the user to choose a character. For single player |
|
Initializes network connection. Initializes the network connection, returns error messages
|
|
Connection Screen. Displays the connection screen and handles the multiplayer connection Currently a stub function, sets to CHAR_SELECT! |
|
Difficulty Screen. Sub-menu under options, allows user to change the difficulty of the game Currently a stub function that sends back to Options menu |
|
Ranking Screen. Displays the ranking of the players at the end of a multiplayer game, takes the names and characters to display in ranked order, with the zeroth array element the 1st player, etc |
|
Gets the current/next screen state. Gets the engine (screen) state
|
|
High Scores Screen. Displays the high scores, returns when moving to main menu |
|
Key Binding Menu. Sub-menu under options, allows user to change the key bindings of the game Currently a stub function that sends back to Options menu |
|
Main Menu. Displays main menu, returns when moving to new menu |
|
moves cursor down Moves cursor one space down if possible
|
|
moves cursor left Moves cursor one space to the left if possible
|
|
moves cursor right Moves cursor one space to the right if possible
|
|
moves cursor up Moves cursor one space up if possible
|
|
Initializes network. Initializes the network, returns error messages
|
|
Options Menu. Displays the options menu, returns when moving to new menu Currently a stub function, sets back to main menu! |
|
SP Game. Displays and runs the game loop (SP or MP), returns when game over for single player, when multiplayer is over, or when explicitly exit |
|
rotates alignment cursor clockwise Rotates the alignment cursor to next available legal orientation on board in the clockwise direction. |
|
Sets current/next screen state. sets the engine (screen) state |
|
Difficulty Screen. Sub-menu under options, allows user to change the sound options Currently a stub function that sends back to Options menu |
|
updates board after sandwich submissions Moves all the rows down one and adds a new row of random ingredients on the top. |
|
Customer sandwich submission. Submits last row of board to customer queue. If submission doesn't match any order then chef's eats it otherwise matching customer is removed from queue and health and tip jar are incremented appropriately.
|
|
opponent sandwich submission Submits last row of board to currently selected opponent.
|
|
updates board after penalty sandwich submission Moves all the rows down one and adds a new row of random ingredients on the top. Also decrements from health with amount decremented dependent on freshness of sandwish. |
|
self sandwich submission Submits last row of board to player. If tip jar isn't full than nothing happens otherwis submitted sandwich is compared against special sandwich types.
|
|
Swaps two ingredients on the game board. Swaps the pieces that the movement and alignment cursor point to
|